#ifndef __FUN_H
#define __FUN_H			  	 
#include "stm8_sys.h"
#include "oled.h"	
#include "key.h"



extern u8 key1;
extern u8 first;
extern u32 freq;
extern short pwmduty;


void InitDisplay(void);
u16 Increment(void);
void checkFreq(void);
void showIntelligentFreq(void);
void setPWM(void);
void keyEvent(u8 inc);
#endif